#include <iostream>
#include <fstream>
#include <string>

namespace ns_log
{
    enum{
        INFO = 0,
        DEBUG,
        WARNING,
        ERROR,
        FATAL
    };

    std::ostream &log(const std::string &level, const std::string &file_name, const int line)
    {
        std::string message;

        // level
        message += "[" + level + "]";
        // file_name
        message += "[" + file_name + "]";
        // line
        message += "[" + std::to_string(line) + "]";

        std::cout << message;
        return std::cout;
    }

    #define LOG(LEVEL) (log(#LEVEL, __FILE__, __LINE__))
}